package com.cskaoyan.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author: lds
 * @clsss: StatUserVo
 */
@Data
public class StatUserVo {


    private List<String> columns;
    private List<RowsBean> rows;

    public List<String> getColumns() {
        return columns;
    }

    public void setColumns(List<String> columns) {
        this.columns = columns;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean {
        /**
         * users : 3
         * day : 2020-04-27
         */

        private Integer users;
        @JsonFormat
        private Date day;

        public int getUsers() {
            return users;
        }

        public void setUsers(Integer users) {
            this.users = users;
        }

        public Date getDay() {
            return day;
        }

        public void setDay(Date day) {
            this.day = day;
        }
    }
}
